package cn.wen.yinxiu.works.service;

import cn.wen.yinxiu.works.entity.DiagnosisEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 数据诊断
 *
 * @ClassName: DiagnosisService
 * @Author 小飞
 * @Email coderwen22@163.com
 * @Date 2023-05-21 22:19:26
 * @Description: 数据总量统计
 */
public interface DiagnosisService extends IService<DiagnosisEntity> {


    /**
     * 获取账号诊断数据统计
     *
     * @return
     * @param userId
     */
    DiagnosisEntity getWorksDiagnosis(Long userId);

    /**
     * 定时统计用户的诊断信息
     * @return
     */
    boolean doDiagnosisDataStatisticsTimer();

    /**
     * 通过用户ID 和本周开始时间获取值
     * @param currentWeekStartTime
     * @return
     */
    DiagnosisEntity getWorksDiagnosisByTime(String currentWeekStartTime, Long userId);

}

